<?php

class DologinAction extends Action  {
		
	public function main(){
		$username = $this->_request['username'];
		$pwd = $this->_request['password'];
		$login = new Login();
		$ret = $login->dologin($username,$pwd);
		if ($ret) {
			header("Location:index.php?do=index/frame");
			
		}else{
			header("Location:index.php?do=index/login&message=403");
			//debug("login failed");
		}
		die();
	}	
	
}
?>